<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{$System_namex}</title>
<script type=text/javascript src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>
<script type=text/javascript src="__PUBLIC__/Js/nav.js"></script>
<script type=text/javascript src="__PUBLIC__/Js/x5920Calendar.js"></script>
<script type=text/javascript src="__PUBLIC__/Js/x5920jquery.js"></script>
<link href="__PUBLIC__/Css/css.css" rel="stylesheet" type="text/css">
<script language="javascript">
function turnHeight(iframe)
{
    var frm = document.getElementById(iframe);
	frm.height = 600;
    var subWeb = document.frames ? document.frames[iframe].document : frm.contentDocument;
    if(frm != null && subWeb != null)
    {
	if (subWeb.body.scrollHeight<600){
	frm.height = 600;
	}else{
	frm.height = subWeb.body.scrollHeight + 10;
	}
	}
}
</script>
<script type="text/javascript">
function reinitIframe(){
	var iframe = document.getElementById("main");
	try{
		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
		var height = Math.max(bHeight, dHeight);
		iframe.height =  height;
	}catch (ex){}
}
</script>
<script>
	/*jQuery("#frame_content").load(function (){
		var mainheight = jQuery(this).contents().find("body").height() + 0;
		jQuery(this).height(mainheight);
	});*/
</script>
<script type="text/javascript">
	jQuery(function(){
		jQuery('#aa').click(function(){
			jQuery('#aa').removeClass('current');
			jQuery(this).addClass('current');
		});
		
	});
if (self != top) top.location.href = window.location.href;

function autoHeight(){

	var iframe = document.getElementById("mainFrame");

	if(iframe.Document){//ie自有属性

		iframe.style.height = iframe.Document.documentElement.scrollHeight;

	}else if(iframe.contentDocument){

		iframe.height = iframe.contentDocument.body.offsetHeight ;

	}

}

function menu(index){

	$(".nav li").removeClass("seleli");

	$(".nav li").eq(index).addClass("seleli");

	$("#sidebar ul").hide();

	$("#menu"+index).show();

}
</script>
<body oncontextmenu="self.event.returnValue=false">
<div class="header">
    <div class="top">
    	<div class="logo"><img src="__PUBLIC__/Images/toplogo.png"/></div>
        <ul class="nav">
            <li class="seleli"><a href="main.aspx">首页</a></li>

            <li><a href="javascript:menu(1)">我的团队</a></li>

			<li><a href="javascript:menu(2)">账户中心</a></li>

            <li><a href="javascript:menu(3)">互助成真</a></li>

			<li><a href="javascript:menu(4)">邮件管理</a></li>
            <li><a href="__APP__/Public/LogOut/"  onclick="if(confirm('确定安全退出吗?')) return true; else return false;" target="_top">安全退出</a></li>

        </ul>

    </div>

</div>



<div class="container">

    <div class="leftbar">

        <div class="lm01">

            <!--<img class="peptx" src="images/tximg.jpg" />-->

            <img class="peptx" src="images/face.jpg" width="100" style="border:1px solid #ccc; border-radius:50px;" />

            <div class="pepdet">

                <p class="pepname"></p>

                <p>会员账户</p>



              <!--    <p>登录次数</p>

              <p>0次</p>  -->

            </div>

            <div class="clear"></div>

        </div>

        <div class="lm02">

            <div class="title">

                <img class="icon" src="images/dataicon.jpg" />

                <h2>日历</h2>

            </div>

            <div class="detail" id="CalendarMain">

            	<div id="title">

                	<a class="selectBtn month" href="javascript:" onClick="CalendarHandler.CalculateLastMonthDays();"><</a>

                    <a class="selectBtn selectYear" href="javascript:" onClick="CalendarHandler.CreateSelectYear(CalendarHandler.showYearStart);"></a>

                    <a class="selectBtn selectMonth" onClick="CalendarHandler.CreateSelectMonth()"></a>

                    <a class="selectBtn nextMonth" href="javascript:" onClick="CalendarHandler.CalculateNextMonthDays();">></a>

                    <a class="selectBtn currentDay" href="javascript:" onClick="CalendarHandler.CreateCurrentCalendar(0,0,0);">今天</a>

                </div>

                <div id="context">

                	<div class="week">

                        <h3> 一 </h3>

                        <h3> 二 </h3>

                        <h3> 三 </h3>

                        <h3> 四 </h3>

                        <h3> 五 </h3>

                        <h3> 六 </h3>

                        <h3> 日 </h3>

                    </div>

                    <div id="center">

                    	<div id="centerMain">

                        	<div id="selectYearDiv"></div>

                            <div id="centerCalendarMain">

                            	<div id="Container"></div>

                            </div>

                            <div id="selectMonthDiv"></div>

                        </div>

                    </div>

                </div>

            </div>

        </div>

        <div class="lm03">

            <div class="title">

                <img style="padding-right:5px;" class="icon" src="images/weaicon.jpg" />

                <h2>邮件</h2>

            </div>

            <div class="detail"><a href="P_Second.aspx?url=1" target="main"><img src="images/baew1.jpg"></a></div>

        </div>

    </div><!--end leftbar-->

    

    <div class="mainbody">

    	<div class="currmenu" id="sidebar">

            <ul class="rig_nav">

                <li class="rig_seleli"><a href="Desktop.aspx" target="main">默认桌面</a></li>

                <li><a href="P_Second.aspx?url=5" target="main">修改密码</a></li>

				<li><a href="Plug/News/Announcement.aspx" target="main">最新公告</a></li>

				<li><a href="P_Second.aspx?url=4" target="main">个人信息</a></li>

				<li><a href="P_Second.aspx?url=3" target="main">发送邮件</a></li>

            </ul>

            <ul class="rig_nav hide" id="menu1">

            	<li><a href="reg.aspx" target="main">会员注册</a></li>

				<li><a href="P_Second.aspx?url=26" target="main">直推会员</a></li>

				<li><a href="P_Second.aspx?url=8" target="main">推荐图谱</a></li>

            </ul>

            <ul class="rig_nav hide" id="menu2">

            	<li><a href="P_Second.aspx?url=5" target="main">修改密码</a></li>

                <li><a href="P_Second.aspx?url=38" target="main">修改密保</a></li>

				<li><a href="P_Second.aspx?url=4" target="main">个人资料</a></li>

				<li><a href="P_Second.aspx?url=40" target="main">银行账户</a></li>

                <li><a href="P_Second.aspx?url=37" target="main">奖金明细</a></li>

            </ul>

            <ul class="rig_nav hide" id="menu3">

            	<li><a href="P_Second.aspx?url=50" target="main">传递爱心</a></li>

                <li><a href="P_Second.aspx?url=52" target="main">传递爱心列表</a></li>

                <li><a href="P_Second.aspx?url=51" target="main">需要援助</a></li>

                <li><a href="P_Second.aspx?url=53" target="main">需要援助列表</a></li>

            </ul>

            <ul class="rig_nav hide" id="menu4">

            	<li><a href="P_Second.aspx?url=1" target="main">收件箱</a></li>

            	<li><a href="P_Second.aspx?url=2" target="main">发件箱</a></li>

            	<li><a href="P_Second.aspx?url=3" target="main">写邮件</a></li>

            </ul>

            

        </div><!--end currmenu-->

        <div class="rig_lm03" style="padding-top:10px;">

        	<iframe allowTransparency="true" name="main" id="mainFrame" src="Desktop.aspx" width="100%" onload="autoHeight();" scrolling="auto" border="1" frameborder="0" ></iframe>

        </div>

    </div><!--end mainbody-->

</div>



<script type="text/javascript">

$(document).ready(function(e) {

	CalendarHandler.initialize();

});

</script>

</body>

</html>